package com.itheima.demo10_抽象类练习;

public class Test {
    public static void main(String[] args) {
        Cook c = new Cook();
        c.setId(1);
        c.setName("张三");
        c.setSalary(666);
        c.show();
        c.work();
        System.out.println("--------");
        Manager m = new Manager();
        m.setId(2);
        m.setName("李四");
        m.setSalary(999);
        m.show();
        m.work();

    }
}
